package com.yloveg.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.yloveg.common.AccessTokenUtil;
import com.yloveg.common.DateUtil;
import com.yloveg.dao.VBusinessMapper;
import com.yloveg.dao.VTokenMapper;
import com.yloveg.dao.VVisitLogMapper;
import com.yloveg.entity.VBusiness;
import com.yloveg.entity.VComplain;
import com.yloveg.entity.VToken;
import com.yloveg.entity.VVisitLog;
import com.yloveg.entity.VVisitor;
import com.yloveg.service.VBusinessService;
import com.yloveg.service.VTokenService;
import com.yloveg.service.VVisitorLogService;

@Service
public class VBusinessServiceImpl implements VBusinessService {

	@Autowired
    private VBusinessMapper vBusinessMapper;

	@Override
	public int insertVBusiness(VBusiness record) {
		record.setSts("Y");
		record.setCreateTime(new Date());
		return vBusinessMapper.insert(record);
	}

	@Override
	public VBusiness selectByPrimaryKey(Integer id) {
		return vBusinessMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<VBusiness> selectByActidAndTime(VBusiness record) {
		
		return vBusinessMapper.selectByActidAndTime(record);
	}

	@Override
	public List<VBusiness> selectByActidAndPlayerAndTime(VBusiness record) {
		
		return vBusinessMapper.selectByActidAndPlayerAndTime(record);
	}

}
